home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swags_z.zip
/
STRINGS.SWG
/
0029_Trim spaces from string.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-26
|
669b
|
18 lines
{*****************************************************************************
* Function ...... AllTrim()
* Purpose ....... To trim off spaces from either side of a string
* Parameters .... str String to trim
* Returns ....... str with leading and trailing spaces removed
* Notes ......... Uses function LTrim and RTrim
* Author ........ Martin Richardson
* Date .......... May 13, 1992
*****************************************************************************}
FUNCTION AllTrim( str : STRING ) : STRING;
BEGIN
IF LENGTH( Str ) > 0 THEN
AllTrim := LTrim(RTrim(str, ' '), ' ')
ELSE
AllTrim := Str;
END;